Intent to change: Single tap may be retargeted to clickable element around the tapped point

126 views
Skip to first unread message

Masayuki Nakano

unread,
Apr 17, 2025, 9:53:00 AMApr 17
to dev-pl...@mozilla.org

Summary: Currently, Gecko may retarget each touch to an element which is near the touch point and has some touch event listeners. However, once we conform to new spec for considering `click` event target, Android users may hard to tap clickable element if surrounding element has touch listeners. Therefore, when the touch is first touch, Gecko starts to retarget the `pointerdown` and `touchstart` event target to clickable element too.

Bug: https://bugzilla.mozilla.org/show_bug.cgi?id=1957321

Specification: N/A

Platform coverage: Android (desktop users can enable the feature with `ui.touch.radius.enabled` pref)

Preference: ui.touch.radius.single_touch.treat_clickable_as_touchable

DevTools bug: N/A

Other browsers: Blink has similar heuristic feature, but I don't know the details. I don't know about WebKit.

web-platform-tests: N/A (but we have a mochitest)

-- 
Masayuki Nakano <masa...@d-toybox.com>
Working on DOM, Events, editor and IME handling for Gecko
Reply all
Reply to author
Forward
0 new messages